﻿using System.Linq;
namespace MMS.Model
{
    public partial class GoodsInfo
    {
        public GoodsInfo ToPOCO(bool self)
        {
            return new GoodsInfo()
            {
                GId = this.GId,
                GCId = this.GCId,
                GCostPrice = this.GCostPrice,
                GSellPrice = this.GSellPrice,
                GIntegralRatio = this.GIntegralRatio,
                GInventory = this.GInventory,
                GName = this.GName,
                GInmin = this.GInmin,
                GInmax = this.GInmax,
                GRemark = this.GRemark,
                GIsDel = this.GIsDel,
                Category=this.Category.ToPOCO()
            };
        }
    }
}
